package com.yunfei.yunhetong.constractSignLog.bo;
import com.yunfei.yunhetong.constractSignLog.entity.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename CONSTRACT_SIGN_LOG
*@author zhengyunfei
*@createDate Fri Aug 30 13:13:38 CST 2019
*/ 
public class ConstractSignLogBo implements java.io.Serializable{
	private String contractId;
	private String createDate;
	private String userName;
	private String operLog;
	private String field;
	private String order;
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		return curNo;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}

	public String getContractId() {
		return contractId;
	}

	public void setContractId(String contractId) {
		this.contractId = contractId;
	}

	public void setCreateDate(String createDate){
		this.createDate=createDate;
	}
	public String getCreateDate(){
		return createDate;
	}
	public void setUserName(String userName){
		this.userName=userName;
	}
	public String getUserName(){
		return userName;
	}
	public void setOperLog(String operLog){
		this.operLog=operLog;
	}
	public String getOperLog(){
		return operLog;
	}
	public static ConstractSignLogEntity boToEntity(ConstractSignLogBo bo){
		ConstractSignLogEntity entity=new ConstractSignLogEntity();
		entity.setContractId(bo.getContractId());
		entity.setCreateDate(bo.getCreateDate());
		entity.setUserName(bo.getUserName());
		entity.setOperLog(bo.getOperLog());
		return entity;
	}
	public static ConstractSignLogBo entityToBo(ConstractSignLogEntity bo){
		ConstractSignLogBo entity=new ConstractSignLogBo();
		entity.setContractId(bo.getContractId());
		entity.setCreateDate(bo.getCreateDate());
		entity.setUserName(bo.getUserName());
		entity.setOperLog(bo.getOperLog());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("id")){
					result="ID";
				}
				if(field.equals("createDate")){
					result="CREATE_DATE";
				}
				if(field.equals("userName")){
					result="USER_NAME";
				}
				if(field.equals("operLog")){
					result="OPER_LOG";
				}
		}
		return result;
	}
}

